#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>

int num = 100;

int main()
{
  pid_t id = fork();
  if(id)
  {
    //father
    num = 200;
    printf("I am father, num:%d, &num:%p\n", num, &num);
  }
  else{
    //child
    sleep(5);
    printf("I am child, num:%d, &num:%p\n", num, &num);
  }
  sleep(10);
  return 0;
}
